﻿using OOP;

namespace demo;
class Program
{

    static void ShowClassAndObject()
    {
         Die dice = new Die();
         Console.WriteLine($"Roll dice and Face Value is {dice.Rolls()}");
    }

    static void Main(string[] args)
    {
        //ShowClassAndObject();
        //var dog = new Dog();
        //dog.Talk();

        Dice diceGame = new Dice();
        List<Die> dies = new List<Die>();
        for (int i = 0; i < 2; i++)
        {
            dies.Add(new Die());
        }

        diceGame.Play(dies);
        bool success = diceGame.GetResult();
        Console.WriteLine(success?$"Your Dice score is {diceGame.GetDieSum()}, You win!!!"
        :$"Your Dice score is {diceGame.GetDieSum()},You failed!!!");
    }
}
